﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Repository
{
    /// <summary>
    /// 服务注入特性
    /// </summary>
    public class RepositoryAttribute : Attribute
    {
        public ServiceLifetime LifeTime { get; set; }
        public RepositoryAttribute(ServiceLifetime serviceLifetime = ServiceLifetime.Transient)
        {
            LifeTime = serviceLifetime;
        }
    }
}
